/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package simplemetrosystem.model.Command.EditCommand;

import simplemetrosystem.control.ElementManager;
import simplemetrosystem.model.Command.Command;
import simplemetrosystem.model.Element.MetroString;

/**
 *
 * @author Eric Qian
 */
public class RemoveStringCommand implements Command{

    public RemoveStringCommand(MetroString string) {
        this.string = string;
    }
    
    public void execute() {
        ElementManager.getInstance().removeString(string);
    }

    public void undo() {
        ElementManager.getInstance().addString(string);
    }
    
    private MetroString string;
}
